
var map, debugMarker;

function initialize() {
        var mapOptions = {
          center: { lat: 60.388422, lng: 5.324013},
          zoom: 14
        };
        map = new google.maps.Map(document.getElementById('map-canvas'),
            mapOptions);
        
          
	$.getJSON( "data/songs.json", function( json ) {

	  	//http://stackoverflow.com/questions/5288833/how-to-search-json-tree-with-jquery
	  	$.each(json.playlist.songs, function( key, value ) {
	  	var myLatlng = new google.maps.LatLng(value.lat,value.lang);
	  	var marker = new google.maps.Marker({
		  	position: myLatlng,
		  	map: map,
		  	title: value.title
	  		});

	  	});
	 });  

}
google.maps.event.addDomListener(window, 'load', initialize);



  